#region using

using System.Collections;
using System.Collections.Generic;

#endregion

namespace MvcMall.Framework.Collections
{
    public class ReadOnlyList<T> : IEnumerable<T>
    {
        private readonly List<T> items = new List<T>();

        public T this[int index]
        {
            get { return items[index]; }
        }

        #region IEnumerable<T> Members

        public IEnumerator<T> GetEnumerator()
        {
            return items.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }

        #endregion
    }
}